  /**
   * 
   * @module description:后端从数据库获取元素信息文件
   * @author 吴迪嘉
   */
const theDatabase = require('../../config/db.js').theDb; //引入数据库

const echartSchema = theDatabase.import('../../schema/sample_detector_ground_info.js'); 

class ElementModel {
    static async UpdateCount(id,depth,count) {

    await echartSchema.update({
        count:count,      
    },{
        where:{
            point_num:id,
            sample_depth:depth,
        }
    })
    return true
}



}

module.exports = ElementModel